package com.dsg.service.apply;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dsg.entity.apply.DsgApplyBill;
import com.dsg.entity.apply.DsgApplyResult;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dsg.entity.dto.CheckResultDto;
import com.dsg.entity.dto.ResultDetailDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 業務申請單內審結果 服务类
 * </p>
 *
 * @author system
 * @since 2020-08-31
 */
public interface IDsgApplyResultService extends IService<DsgApplyResult>, IDsglService<DsgApplyResult> {

    List<ResultDetailDto> resultDetail(String appNo);

    Page<CheckResultDto> selectCheckResult(Page<CheckResultDto> page, @Param("appNo") String appNo,
                                           @Param("entCode")String entCode, @Param("keepType")Integer keepType);

    /**
     * 內審是否通過
     * @param bill
     * @return
     */
    boolean isAuditPass(DsgApplyBill bill);
}
